package com.feign.service;

import com.cacos.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "eureka-provider")
public interface UserFeignService {
    @RequestMapping("/consumer/user/{id}")
    User getUser(@PathVariable Integer id);
}
